<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<title>理想公司考试辅助出题系统</title>
<link rel="stylesheet" href="../css/kgedit.css">
<link rel="stylesheet" href="../css/main.css">
<link href="../css/bootstrap.css" type="text/css" rel="stylesheet" media="all">
<script type="text/javascript" src="../lib/jquery/3.4.1/jquery.min.js"></script>
<script type="text/javascript" src="../lib/jquery-ui/1.9.1/jquery-ui.min.js"></script>
<script type="text/javascript" src="../lib/ajax/ajaxfileupload.js"></script>
<script type="text/javascript" src="../utility/utility.js"></script>
<script type="text/javascript" src="js/qa.js"></script>
</head>
<body>
	<div class="middle" style="padding: 30px;">
		<span style="font-size: 30px;">理想公司考试辅助出题系统</span><br> <span style="font-size: 25px;">（市民服务热线内测版）</span>
		<button id="jumpButton" class="btn" onclick="toPage('./console.html')"
			style="display: none; float: right; border: 2px solid #000000">控制台页面</button>
	</div>
	<div style="background-color: #459df5; height: 40px;">
		<span id="infoHead" style="margin-left: 50px; color: white; line-height: 40px; display: none"></span>
	</div>

	<div class="middle">
		<span id="infoout" style="color: red"></span>
	</div>
	<div style="background-color: #459df5; height: 2px;"></div>
	<div class="middle border" style="height: 650px">
		<div>
			<div class="floatarea border" style='width: 49%; height: 370px'>
				<span>从以下文本中进行出题</span>
				<div style="background-color: #000000; height: 1px;"></div>
				<br>
				<textarea id='textInput' style="height: 300px; width: 100%; resize: none" placeholder='输入原始文本'></textarea>
				<br>
			</div>
			<div class="floatarea" style='width: 2%; height: 10px'></div>
			<div class="floatarea border" style='width: 49%; height: 370px'>
				<span id="costoutput">出题结果</span>
				<div style="background-color: #000000; height: 1px;"></div>
				<br>
				<div style="text-align: left">
					&nbsp;出题数量&nbsp;&nbsp;<input id="qaNum" value="3" style="width: 50px" onkeyup="value=value.replace(/[^\d]/g,'')"></input>
					<button id="qa1" onclick="parse(1)" style="margin-left: 20px; width: 60px">问答题</button>
					<button id="qa2" onclick="parse(2)" style="margin-left: 10px; width: 60px">单选题</button>
					<button id="qa4" onclick="parse(4)" style="margin-left: 10px; width: 60px">多选题</button>
					<button id="qa3" onclick="parse(3)" style="margin-left: 10px; width: 60px">判断题</button>
					<button id="qa5" onclick="parse(5)" style="margin-left: 10px; width: 60px">填空题</button>
				</div>
				<br>
				<PRE id="simpleoutput" style="height: 250px; width: 100%; text-align: left; white-space: pre-wrap"></PRE>
			</div>
		</div>
		<div class="middle border" style='float: right; width: 100%; height: 250px'>
			<div style="float: left; line-height: 32px">
				<b style="font-size: 20px">&nbsp;&nbsp;使用现有政策文件</b>
			</div>
			<div style="float: right; line-height: 32px">
				<span>换一批&nbsp;&nbsp;</span>
				<button class="btn btn32 btn-refresh" onclick="getInfo()"></button>
			</div>
			<div>
				<table class="table table-bordered table-striped">
					<thead>
						<tr>
							<td style="text-align: center; width: 48px"></td>
							<td style="text-align: left;"><b>文件名</b></td>
							<td style="text-align: left; width: 100px"><b>文本长度</b></td>
							<td style="text-align: left; width: 100px"><b>文件大小</b></td>
							<td style="text-align: center; width: 48px"></td>
						</tr>
					</thead>
					<tbody id="fileTable" style="width: 100%;">
						<tr>
							<td style="text-align: center"><button class="btn btn32 btn-file"></button></td>
							<td style="text-align: left">--</td>
							<td style="text-align: left">--</td>
							<td style="text-align: left">--</td>
							<td style="text-align: center">
								<button class="btn btn32 btn-up" onclick=""></button>
							</td>
						</tr>
					</tbody>
				</table>
			</div>
		</div>
	</div>
</body>